package xyz.shenmegui.foodcheckserver.service;

import xyz.shenmegui.foodcheckserver.DO.Record;
import xyz.shenmegui.foodcheckserver.VO.RecordDetail;

import java.util.List;

public interface RecordService {

    List<RecordDetail> selectByUserId(int uid);

    List<RecordDetail> selectByCollected(int uid);

    Record selectById(int id);

    int deleteByIdLogic(Record record);

    int deleteByIdPhysically(Record record);

    int deleteByIdCollection(Record record);

    int insert(Record record);

    int addCollection(Record record);

    int update(Record record);
}
